import 'package:flutter/material.dart';
import 'package:flutter_light_dark_demo/Utils/constant.dart';
/**
 * Create by laoge
 * on 2021/5/6 0006
 */

ThemeData lightTheme(BuildContext context) {
  return ThemeData.light().copyWith(
      primaryColor: mPrimaryColor,
      scaffoldBackgroundColor: mTextLightColor,
      appBarTheme: AppBarTheme(
          backgroundColor: mTextLightColor, centerTitle: false, elevation: 0),
      iconTheme: IconThemeData(color: mTextDarkColor),
      textTheme: Theme.of(context).textTheme.apply(bodyColor: mTextDarkColor));
}

ThemeData darkTheme(BuildContext context) {
  return ThemeData.light().copyWith(
      primaryColor: mPrimaryColor,
      scaffoldBackgroundColor: mTextDarkColor,
      appBarTheme: AppBarTheme(
          backgroundColor: mTextDarkColor, centerTitle: false, elevation: 0),
      iconTheme: IconThemeData(color: mTextLightColor),
      textTheme: Theme.of(context).textTheme.apply(bodyColor: mTextLightColor));
}
